package com.tucue.dao;

import com.tucue.model.GeneralService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface GeneralServiceMapper {
    int deleteByPrimaryKey(Integer generalserviceid);

    int insert(GeneralService record);

    int insertSelective(GeneralService record);

   GeneralService selectByPrimaryKeyAll(Integer generalserviceid);

    List<GeneralService> selectByPrimaryKey(Integer generalserviceid);

    //批量查询 通用服务
    List<Map<String,String>> selectGenralServiceInfo ();

    List<GeneralService> selectAll();

    //<!--更新通用服务产品-->
    int updateGeneralService(GeneralService record);

    int updateByPrimaryKey(GeneralService record);

    //单个删除通用服务产品
    int deleteGeneralService(@Param(value = "id") int id, @Param(value = "visible") int visible);

    //批量删除通用服务产品
    int deleteGeneralServiceBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "visible") int visible);

    //批量修改通用服务产品状态
    int updateGeneralServiceStatusBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "status") int visible);
}